package com.igroupes.ovineherd.model.enums;

import com.igroupes.ovineherd.enums.CodeEnum;

/**
 * 复杂类别，用于区分数据的复杂度
 */
public enum FormKey implements CodeEnum<String> {
    NUMBER("number"),
    TEXT("text"),
    TEXTAREA("textarea"),
    LOCATION("location"),
    CHECKBOX("checkboxes"),
    RADIO("radios"),
    PASSEORD("password"),
    PHONE("text"),
    EMAIL("email"),
    URL("url"),
    IDCARD("text"),
    POSTCODE("text"),
    TELEPHONE("text"),
    ADDRESS("city"),

    SWITCH("switch"),
    SELECT("select"),

    DATE("date"),
    DATERANGE("date-range"),
    DATETIME("datetime"),
    DATETIMERANGE("datetime-range"),
    TIME("time"),
    TIMERANGE("time-range"),
    MONTH("month"),
    MONTHRANGE("month-range"),
    YEAR("year"),
    YEARRANGE("year-range"),

    ENUM("array"),
    FILE("file"),
    IMAGE("image"),
    ;

    private String key;
    FormKey(String key){
        this.key = key;
    }
    @Override
    public String getCode() {
        return this.key;
    }
}
